/*
*	Project: Aethon
*
*	File: Timer.cpp
*
*	Author: Jonathan Hersack
*
*	Date: 3/26/2009
*
*   Purpose: Provides a singleton timer to track time.
*/

#include "../include/Timer.h"
//singleton pattern based on http://www.inquiry.com/techtips/cpp_pro/10min/10min0200.asp
	Timer* Timer::pinstance = 0;// initialize pointer	

	Timer* Timer::getInstanceOf()//returns instance of Timer
	{
		if (pinstance == 0)  // is it the first call?
		{  
		pinstance = new Timer(); // create sole instance
		}
		return pinstance; // address of sole instance
	}//end get instance of
	
 	void Timer::incrementTime()
 	{
         time++;
    }
	
	
